<div id="sidebar">
		
	<h2>Categories</h2>
	<ul>
		<?foreach ($this->mdl_categories->get() as $category) {?>
			<li class="cat-item"><?=$this->inktype->anchor('category/' . $category->url_title, $category->category);?></li>
		<?}?>
	</ul>
	
	<h2>Links</h2>
	<ul>
		<?foreach ($this->mdl_blogroll->get() as $link) {?>
		<li class="cat-item"><a href="<?=$link->url;?>"><?=$link->title;?></a></li>
		<?}?>
	</ul>

	<h2>Meta</h2>
	<ul>
		<?if ($this->inktype->is_logged_in()) {?>
			<li>Welcome, <?=$this->inktype->user_display_name;?></li>
			<li>Your Profile</li>
		<?} else {?>
			<li><?=anchor('sessions/login', 'Log In');?></li>
			<li><?=anchor('sessions/register', 'Register');?></li>
		<?}?>
		</ul>	

	<h2>Search</h2>	
	<li><?=$this->inktype->form_open_search('search');?>
		<input type="text" name="search">
		<input type="submit" name="btn_search" value="Search">
	</form></li>

</div>